package com.itheima.design.mode.responsibility;

public class PlayGame {

    public static void main(String[] args) {

        //创建一个责任链
        ResponsibilityChain chain = new ResponsibilityChain();

        //往责任链里面加入具体的责任逻辑
        chain.register(new ResponsibilityA());
        chain.register(new ResponsibilityB());
        chain.process(new Request(){});
    }
}
